/**
 * 
 */
package MariMonDaily;

import java.util.List;

import com.dukascopy.api.IBar;
import com.dukascopy.api.IHistory;
import com.dukascopy.api.IOrder;
import com.dukascopy.api.Instrument;
import com.dukascopy.api.JFException;
import com.dukascopy.api.Period;
import com.dukascopy.api.impl.History;

import org.joda.time.DateTime;

/**
 * @author jon
 *
 */
public class Tools {

	/**
	 * 
	 * 
	 */
	public Tools() {
		
	}
	
	public long NewBar(IHistory history, Period period, Instrument instrument) throws JFException{
		
		long LastTime = 0;
		
		LastTime = history.getStartTimeOfCurrentBar(instrument, period);
		
		return LastTime;
		
	}
	

}
